<?php 
  require_once("../../includes/config.php"); 
  if(isset($_GET['id']))
  {
    $apartments = query('
          SELECT a. *  FROM apartments a
          WHERE a.id=?',$_GET['id']);
          
    $aprt = $apartments[0];
    renderWithoutHeader("Apartments/view.php", array("aprt"=>$aprt,"cooler_type"=>$cooler_type));

  }  

?>